package com.ym.medical.domain.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ym.medical.enums.InquiryOrderPaymentStateEnum;
import com.ym.medical.enums.PaymentWayEnum;
import com.ym.medical.enums.TransactionDetailsTdTypeEnum;
import com.ym.medical.enums.TransactionStateEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 个人交易订单
 */
@Data
@ApiModel("个人交易订单记录")
public class PerTransfTdRecordVO  {
    @ApiModelProperty("订单编号")
    private String ioNum;
    @ApiModelProperty("患者姓名")
    private String patientName;
    @ApiModelProperty("订单类型 (个人交易记录条件)")
    @JsonSerialize(converter = TransactionDetailsTdTypeEnum.Covert.class)
    private String ioType;
    @ApiModelProperty("交易状态 (个人交易记录条件)")
    @JsonSerialize(converter = TransactionStateEnum.Covert.class)
    private String tdState;
    @ApiModelProperty("交易状态 key='TransactionStateEnum'")
    private String tdStateName;
    @ApiModelProperty("支付状态")
    @JsonSerialize(converter = InquiryOrderPaymentStateEnum.Covert.class)
    private String ioPayMentState;
    @ApiModelProperty("交易金额")
    private String tdAmount;
    @ApiModelProperty("付款账户类型")
    @JsonSerialize(converter = PaymentWayEnum.Covert.class)
    private String dfAccType;
    @ApiModelProperty("付款账户")
    private String dfAcc;
    @ApiModelProperty("交易时间")
    private Date tdTime;
    @ApiModelProperty("创建时间")
    private Date createTime;
}
